/* 不常见原始类型 */

// ES2020 引入原始类型 BigInt，用于表示非常大的整数
// Creating a bigint via the BigInt function
const oneHundred: bigint = BigInt(100);

// Creating a BigInt via the literal syntax
const anotherHundred: bigint = 100n;


// 通过函数 Symbol()，可以创建一个全局唯一的引用
const firstName = Symbol("name");
const secondName = Symbol("name");

if (firstName === secondName) {
  // This condition will always return 'false' since the types 'typeof firstName' and 'typeof secondName' have no overlap.
  // Can't ever happen
}